package com.kang.util;


public enum ReturnCodeEnum {
    SUCCESS("0000", "查询成功"),
    NOT_RESULT("0001", "查询无记录"),
    SEARCH_FAILED("0002", "查询失败"),
    SEND_SUCCESS("0004","发送成功"),
    ACCOUNT_ERROR("1000", "账户不存在或被禁用"),
    API_NOT_EXISTS("1001", "请求的接口不存在"),
    API_NOT_PER("1002", "没有该接口的访问权限"),
    API_ARGS_FORMAT_ERROR("1003", "args参数json格式错误"),
    ARGS_EMPTY("1004", "传入参数为空或格式错误"),
    SIGN_ERROR("1005", "数据签名错误"),
    FILE_FORM_ERROR("1006","文件格式错误"),
    FILE_COUNT_ERROR("1007","上传人数超出限制"),
    AMOUNT_NOT_QUERY("1010", "余额不够，无法进行查询"),
    API_DISABLE("1011", "查询权限已被限制"),
    UNKNOWN_IP("1099", "非法IP请求"),
    SYSTEM_ERROR("9999", "系统异常"),
    OPERATE_SUCCESS("2000", "操作成功"),
    OPERATE_FAILED("2002", "操作失败"),
    NAME_IS_HAD("2003","该办事名称已存在"),
    SORT_IS_HAD("2004","该排序顺序已存在")

//    NO_PERMISSION(String.valueOf(HttpStatus.FORBIDDEN.value()), "无权限"),
//    NOT_AUTH(String.valueOf(HttpStatus.UNAUTHORIZED.value()), "请先登录"),
    ;

    private String code;
    private String msg;
    private ReturnCodeEnum(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }


    public String getCode() {
        return code;
    }
    public String getMsg() {
        return msg;
    }
}
